FapiMember\FapiMemberPlugin D

Total Complexity 344
Dependencies 21
Dependents 2
Total lines 2,356
Lines of code 1,753
Logical lines of code 850
Comment lines 136
Methods 89
Properties 6

Methods 89

Method Rating Maintainability Complexity Lines of code
tUserProfileOneSection()
B
32 17 119
handleApiCallback()
B
35 16 94
handleUserProfileSave()
B
40 17 56
checkPage()
A
44 14 46
createOrProlongMembership()
A
40 11 64
handleApiCredentialsSubmit()
A
42 10 57
handleApiListFormsCallback()
A
48 11 36
loginRedirect()
A
47 9 38
showLevelSelectionPage()
A
46 8 41
getEmailFromPaidInvoice()
A
47 8 41
getEmailFromValidVoucher()
A
46 8 41
sanitizeTime()
A
56 9 18
addMetaBoxes()
A
48 7 35
savePostMetadata()
S
50 7 27
handleApiSections()
S
51 6 30
handleApiSectionsSimple()
S
50 6 30
handleAddPages()
S
51 6 25
findEmailsToSend()
S
53 6 24
handleSetSettings()
S
49 5 38
addHooks()
S
43 4 49
handleEditEmail()
S
46 4 45
sanitizeLevels()
S
52 5 28
migrateCredentials()
S
52 5 27
getEmailFromBodyWithValidToken()
S
53 5 24
handleRemovePages()
S
49 4 33
getLoginUrl()
S
59 5 14
addRestEndpoints()
S
44 1 68
getFapiClients()
S
54 4 22
handleNewLevel()
S
55 4 20
addScripts()
S
57 4 18
handleApiCredentialsRemove()
S
56 4 17
enhanceProps()
S
59 4 15
verifyNonceAndCapability()
S
62 4 11
handleApiCheckConnectionCallback()
S
55 3 23
redirect()
S
55 3 21
addUserProfileForm()
S
55 3 19
updateFapiClients()
S
56 3 19
loggedInRedirect()
S
64 4 10
sanitizeSubpage()
S
65 4 9
handleEditLevel()
S
60 3 13
handleOrderLevel()
S
60 3 13
__construct()
S
61 3 12
registerScripts()
S
55 2 25
handleSetOtherPage()
S
53 2 24
getSetting()
S
68 3 7
findSubpage()
S
68 3 7
constructAdminMenu()
S
64 3 9
checkIfLevelSelection()
S
67 3 7
redirectToNoAccessPage()
S
63 3 10
handleRemoveLevel()
S
62 2 12
handleNewSection()
S
62 2 12
sendEmail()
S
62 2 11
addPublicScripts()
S
64 2 11
registerStyles()
S
57 1 22
registerSettings()
S
56 1 22
hideAdminBar()
S
68 2 7
registerRoles()
S
72 2 5
getAllMemberships()
S
66 2 8
sanitization()
S
71 2 6
renderCheckbox()
S
72 2 4
fapiApi()
S
65 2 9
userUtils()
S
71 2 6
fapiMembershipLoader()
S
71 2 6
showTemplate()
S
66 2 8
handleApiUsernamesCallback()
S
64 2 10
showTest()
S
71 2 6
levels()
S
71 2 6
sanitizeDate()
S
66 2 8
showIndex()
S
72 2 6
addAdminMenu()
S
61 1 14
showSettingsSettings()
S
81 1 3
showSettingsPages()
S
81 1 3
showSettingsContentAdd()
S
81 1 3
showSettingsElements()
S
81 1 3
showMemberList()
S
81 1 3
showSettingsEmails()
S
81 1 3
showConnection()
S
81 1 3
callbackError()
S
66 1 10
showSettingsContentRemove()
S
81 1 3
showSettingsContentSelect()
S
81 1 3
showSettingsLevelNew()
S
81 1 3
showSettingsSectionNew()
S
81 1 3
areApiCredentialsSet()
S
79 1 3
showError()
S
68 1 8
registerLevelsTaxonomy()
S
82 1 3
registerPublicStyles()
S
73 1 6
isDevelopment()
S
74 1 4
addShortcodes()
S
72 1 5
recheckApiCredentials()
S
81 1 3